#define  _CRT_SECURE_NO_WARNINGS 1
#include"Slist.h"
SLTnode* plist=NULL;
int main()
{

	//pushhead(&plist, 5);
	//popend(&plist);
	//print(plist);
	//pushhead(&plist, 4);
	//pushhead(&plist, 3);
	//pushhead(&plist, 2);
	//pushhead(&plist, 1);
	//print(plist);
	//pophead(&plist);
	//pophead(&plist);
	//pophead(&plist);
	//pophead(&plist);
	//print(plist);
	//pushend(&plist, 1);
	//pushend(&plist, 2);
	//pushend(&plist, 3);
	//print(plist);
	//popend(&plist);
	//print(plist);


	pushhead(&plist, 4);
	pushhead(&plist, 3);
	pushhead(&plist, 2);
	pushhead(&plist, 1);
	print(plist);
	SLTnode*pos=SeqListFind(plist, 3);
	//SeqListInsert(plist, pos, 5);
	//print(plist);
	//insert(&plist, pos, 9);
	addafter(&plist, pos, 5);
	print(plist);


	return 0;
}
